package com.dattplace.model;

public abstract class ResultCode {
	public static final String SUCCESS = "0000";//成功
	public static final String FAILTURE = "9999";//失败
	
	public static final String FAILTURE_ERROR_CODE = "8888";//验证码不正确
	public static final String ACCESS_DENIED="0001";//访问被拒,token失效专用错误编号
	
	
	public static ResultData<Object> success(String msg,Object o){
		return new ResultData<Object>(SUCCESS,msg,o);
	}
	
	public static ResultData<Object> error(String msg,Object o){
		return new ResultData<Object>(FAILTURE,msg,o);
	}
	
	public static ResultData<Object> accessDenied(String msg,Object o){
		return new ResultData<Object>(ACCESS_DENIED,msg,o);
	}
}
